package com.pony.iphone.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger配置类
 * @auther pony
 * @create 2025-10-30 15:11
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI().info(new Info()
                .title("题库管理系统 API")
                .version("1.0.0")
                .description("题库管理系统接口文档")
                .contact(new Contact()
                        .name("pony")
                        .email("2916378264@qq.com")));
    }
}